﻿#include<iostream>
#include<string>

using namespace std;

int main() {
	string s1 = "ABC";
	string s2 = "HIJKLMN";
	string digits = "0123456789";

	s1 += "DEF";
	s1 += "G";
	s1 += s2;

	s1.insert(6, digits.substr(5, 3));

	s2.replace(3, 2, "kl");
	s2.erase(6);

	cout << "s1 = ";
	for (int i = 0; i < s1.length(); i++) {
		cout << s1[i];
	}
	cout << '\n';

	cout << "s2 = " << s2 << '\n';

	cin.get();
}